<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Pracainzynierska: Plik źródłowy src/main.h</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Wygenerowano przez Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Strona&nbsp;główna</span></a></li>
      <li><a href="annotated.html"><span>Struktury&nbsp;Danych</span></a></li>
      <li class="current"><a href="files.html"><span>Pliki</span></a></li>
    </ul>
  </div>
<h1>src/main.h</h1><a href="main_8h.html">Idź do dokumentacji tego pliku.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef MAIN_H_INCLUDED</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define MAIN_H_INCLUDED</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="comment">/* dotyczy printVectorsNEW - maski print-a */</span>
<a name="l00005"></a><a class="code" href="main_8h.html#e00a20f61164fb74cb09105d2f4348c8">00005</a> <span class="preprocessor">#define MSK_P   1               </span>
<a name="l00006"></a><a class="code" href="main_8h.html#c4c455795b32257010c9be2b845bddce">00006</a> <span class="preprocessor">#define MSK_P_  2               </span>
<a name="l00007"></a><a class="code" href="main_8h.html#4c4b917a9256232b587e9af27900045e">00007</a> <span class="preprocessor">#define MSK_W   4               </span>
<a name="l00008"></a><a class="code" href="main_8h.html#fe6b2fe5bc7084afbe5f76d0e4be4d0f">00008</a> <span class="preprocessor">#define MSK_V   8               </span>
<a name="l00009"></a><a class="code" href="main_8h.html#b46c763f901435183a60a90c8065135f">00009</a> <span class="preprocessor">#define MSK_V_  16              </span>
<a name="l00010"></a><a class="code" href="main_8h.html#072e387394eca86e5be43efef72251cf">00010</a> <span class="preprocessor">#define MSK_XR  128             </span>
<a name="l00011"></a><a class="code" href="main_8h.html#58961bee5268baf32d9ca9ac51bcf126">00011</a> <span class="preprocessor">#define MSK_INDEX 512   </span>
<a name="l00012"></a><a class="code" href="main_8h.html#7f0b6817300121163223ef6a0a6303f5">00012</a> <span class="preprocessor">#define MSK_TYTUL 1024  </span>
<a name="l00013"></a><a class="code" href="main_8h.html#48cb32c9244f6514855c55833365e915">00013</a> <span class="preprocessor">#define MSK_BASIC 13    </span>
<a name="l00014"></a><a class="code" href="main_8h.html#13b3446f7260cfaa3b9d96fcb961bcc2">00014</a> <span class="preprocessor">#define MSK_ALL 1023    </span>
<a name="l00015"></a><a class="code" href="main_8h.html#6c2e0ef3768d7df3cd7565c3d4d5a944">00015</a> <span class="preprocessor">#define SORT_I  1               </span>
<a name="l00016"></a><a class="code" href="main_8h.html#f2c5fd4a2157bbaddee5c93c0cbebb2f">00016</a> <span class="preprocessor">#define SORT_K  2               </span>
<a name="l00020"></a>00020 <span class="preprocessor">void AlokujPamiec(int);</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="keywordtype">void</span> <a class="code" href="main_8c.html#86892a380cb93ebd030dba5a6302be06" title="Inicjalizuje czesc wektorow.">InicjujDane</a>();
<a name="l00022"></a>00022 <span class="keywordtype">void</span> <a class="code" href="main_8c.html#362a3c1431859c5851d11cf139c74b31">SortujB</a>();
<a name="l00023"></a>00023 
<a name="l00024"></a><a class="code" href="main_8h.html#647b0fdf81ddfa7573e0f8fcd0708e13">00024</a> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="main_8h.html#647b0fdf81ddfa7573e0f8fcd0708e13">KP01_D</a>=<span class="stringliteral">"param N;\nparam p {i in 1..N};\nparam w {i in 1..N};\nparam c;\nparam K;\n\nvar x {i in 1..N} &gt;= 0;\nvar b {i in 1..N} &gt;= 0, integer;\n\ns.t. ogr_1 { i in 1..N}:\n\tx[i] &lt;= b[i];\n\ns.t. binar { i in 1..N}:\n\tb[i] &lt;= 1;\n\ns.t. pojemnosc:\n\tsum { i in 1..N} x[i]*w[i] &lt;= c;\n\ns.t. liczba_elementow:\n\tsum {i in 1..N} b[i] &lt;= K;\n\nmaximize z:\n\tsum {i in 1..N} x[i]*p[i];\n\nend;\n"</span>;
<a name="l00025"></a><a class="code" href="main_8h.html#689c7814b58c9ff6a60412016bb1ab9f">00025</a> <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="main_8h.html#689c7814b58c9ff6a60412016bb1ab9f">KP01_R</a>=<span class="stringliteral">"param N;\nparam p {i in 1..N};\nparam w {i in 1..N};\nparam c;\nparam K;\n\nvar x {i in 1..N} &gt;= 0;\n\ns.t. ogr_1 { i in 1..N}:\n\tx[i] &lt;= 1;\n\ns.t. pojemnosc:\n\tsum { i in 1..N} x[i]*w[i] &lt;= c;\n\ns.t. liczba_elementow:\n\tsum {i in 1..N} x[i] &lt;= K;\n\nmaximize z:\n\tsum {i in 1..N} x[i]*p[i];\n\nend;\n"</span>;
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="comment">//void ZnajdzPoczatkowaLambda2();</span>
<a name="l00028"></a>00028 <span class="comment">//void WczytajDaneWejsciowe(char* filename);</span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="comment">//</span>
<a name="l00031"></a>00031 <span class="comment">//</span>
<a name="l00032"></a>00032 <span class="preprocessor">#endif // MAIN_H_INCLUDED</span>
</pre></div></div>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>_</title></head>
<body><hr style="width: 100%; height: 2px;"><table style="text-align: left; width: 100%; height: 34px;" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="vertical-align: top;"><small style="font-family: Helvetica,Arial,sans-serif;"><span style="font-style: italic;">Dokumentacja pracy in&#380;ynierskiej,&nbsp;Kacper D. Tom&#380;y&#324;ski</span></small><big><br></big></td><td style="text-align: right; vertical-align: top;"><img style="width: 42px; height: 33px;" alt="" src="img/IAlogo0.gif" align="top" vspace="10"><small> &nbsp;</small><img style="width: 42px; height: 59px;" alt="" src="img/eiti.GIF"></td></tr></tbody></table><br></body></html>
